package cn.lili.modules.payment.entity.dto;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;

import javax.validation.constraints.NotNull;
import java.io.Serializable;

/**
 * 第三方回调参数
 *
 * @author Chopper
 * @since 2020/12/19 11:46
 */
@Data
@ToString
@NoArgsConstructor
public class ThirdPayCallbackParam implements Serializable {


    @NotNull
    @ApiModelProperty(value = "支付单号")
    private String sn;

    private Boolean isCombine;

    public ThirdPayCallbackParam(PayParam payParam) {
        this.sn = payParam.getCombineSn();
        this.isCombine = payParam.getIsCombine();
    }
}
